/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package ticketbooking;

import java.security.Key;
import javax.crypto.SecretKey;

/**
 *
 * @author LEHOANGKHANH
 */
public class ServerKey {
    Key publicKeyRSA = null;
    Key privateKeyRSA = null;
    Key publicKeySign = null;
    Key privateKeySign = null;
    SecretKey secretKey = null;
    
    public ServerKey(Key publickey, Key privatekey, SecretKey secretkey){
        this.privateKeyRSA = privatekey;
        this.publicKeyRSA = publickey;
        this.secretKey = secretkey;
    }
    public void setPublicKeyRSA(Key key){
        this.publicKeyRSA = key;
    }
    public void setPrivatekayRSA(Key key){
        this.privateKeyRSA = key;
    }
    public void setPublicKeySign(Key key){
        this.publicKeySign = key;
    }
    public void setPrivateKeySign(Key key){
        this.privateKeySign = key;
    }
    public void setSecretKey(SecretKey key){
        this.secretKey = key;
    }
    public Key getPublicKeyRSA(){
        return this.publicKeyRSA;
    }
    public Key getPrivateKeyRSA(){
        return this.privateKeyRSA;
    }
    public Key getPubliKeySign(){
        return this.publicKeySign;
    }
    public Key getPrivateKeySign(){
        return this.privateKeySign;
    }
    public SecretKey getSecretKey(){
        return this.secretKey;
    }
}
